package com.cpe.data.domain.student.classproject;

import org.apache.commons.lang3.StringUtils;

import com.sql.data.request.BaseForm;

import lombok.Data;
import lombok.EqualsAndHashCode;

@Data
@EqualsAndHashCode(callSuper = false)
public class StudentClassProjectForm extends BaseForm {
	private static final long serialVersionUID = -6104063380614978348L;

	private String studentId;

	private String classProjectId;

	private Float score;

	private String unit;

	private String creator;

	@Override
	public boolean stopCreate() {
		return StringUtils.isAnyBlank(studentId, classProjectId, creator) || score == null;
	}

	@Override
	public boolean stopUpdate() {
		// TODO Auto-generated method stub
		return false;
	}
}
